ConNectorGridCtl = Ext.extend(GridCtl, {

			getCmItems : function() {

				var items = [this.getCmItem('id', 'id', true),
						this.getCmItem('编号', 'connectorid', true),
						this.getCmItem('姓名', 'connectorname', true),
						this.getCmItem('职务', 'possition', true),
						this.getCmItem('电邮', 'email', true),
						this.getCmItem('电话', 'tel', true),
						this.getCmItem('手机', 'mb', true),
						this.getCmItem('年龄', 'age', true),
						this.getCmItem('性别', 'sex', true),
						this.getCmItem('特点', 'hobe', true),
						this.getCmItem('备注', 'notes', true)

				];

				return items;
			},
			configButtons : function(config) {

				var buttons = [{
							text : '添加',
							handler : this.add,
							scope : this
						}, {
							text : '修改',
							handler : this.edit,
							scope : this
						}];

				config.buttonAlign = 'left';
				config.buttons = buttons;

				return config;

			},
			getCommonConfig : function() {
				
				var gcc = cf.getC('gcc');
				
				var config = {
					region : 'south',
					height : gcc.sh*0.3
				};

				return config;

			},
			add : function() {

				var id = this.customerid;
				
				var cnfc = cf.getC('cnfc');
				cnfc.reset();
				
				var cnfwc = cf.getC('cnfwc');
				cnfwc.show(id);

			},
			edit : function() {

				var record = this.getSelectedRecord();
				if (!record) {
					alert('请先选择一条记录！');
					return;
				}

				var connectorid = record.get('id');

				var cnfc = cf.getC('cnfc');
				cnfc.reset();
				cnfc.load(connectorid);

				var id = this.customerid;
				var cnfwc = cf.getC('cnfwc');
				cnfwc.show(id);

			},
			load : function(id) {

				this.customerid = id;

				var store = this.store;
				store.baseParams = {
					customerid : id,
					by : 'customerid'
				};
				store.load();

			},
			getStoreUrl : function() {

				var resource = 'connector.do';
				var server = cf.getC('s');
				var url = server.getUrl({
							resource : resource,
							act : 'read'
						});
				return url;
			}

		});
